package com.aaa.sso.feign;

import com.aaa.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: aaa-education-parent
 * @description:
 * @author: 闫克起
 * @create: 2024-03-06 10:58
 **/
@FeignClient(value = "education-system")
public interface UserFeign {
    //如果是微服务与微服务的调用直接返回类对象。  如果是前端调用则返回统一的json.
    @GetMapping("/system/user/getName/{name}")
    public User getByName(@PathVariable String name);
}
